package com.yxw.yx_hotel.dto.hotel_tenant;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value="HotelTenantAddDTO", description="添加客户管理dto")
public class HotelTenantAddDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "客户名称",required = true)
    @NotNull(message = "客户名称不能为空!")
    private String tenantName;

    @ApiModelProperty(value = "联系人名称",required = true)
    @NotNull(message = "联系人名称不能为空!")
    private String userName;

    @ApiModelProperty(value = "联系电话",required = true)
    @NotNull(message = "联系电话不能为空!")
    private String phone;

    @ApiModelProperty(value = "登录账号",required = true)
    @NotNull(message = "登录账号不能为空!")
    private String userNum;

    @ApiModelProperty(value = "登录密码",required = true)
    @NotNull(message = "登录密码不能为空!")
    private String password;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间",required = true)
    @NotNull(message = "开始时间不能为空!")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间",required = true)
    @NotNull(message = "结束时间不能为空!")
    private Date endTime;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty(value = "公司全称",required = true)
    @NotNull(message = "公司全称不能为空!")
    private String wholeName;

    @ApiModelProperty("附件资源")
    private String resource;
}
